﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jayden.Dll.ECMAScript
{
	public class Return : Statement
	{
		private Expression m_ReturnExpression;

		public void RenderStatement(int level, StringBuilder builder)
		{
			StatementList.AppendSpacing(level, "\t", builder);
			builder.Append("return ");
			if (m_ReturnExpression != null)
				m_ReturnExpression.RenderExpression(builder);
			builder.AppendLine(";");
		}
	}
}
